﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.Threading;

namespace FirstWebServer
{
    public class MyNotification
    {
        public MyNotification() { Notify("Console notification is on.\n*** Test web-server enabled ***\n*** version 0.1 ***\n"); Client.Notify += new Client.Notify_EventHandler(Notify); }
        public static void Notify(string s) { Console.WriteLine(s); }
        public static void SendEmail(string s) { /*Sending E-mail*/}
        public static void WriteToLogFile(string s) { /*Writing log file*/}
        //Another methods
        ~MyNotification() { Client.Notify -= new Client.Notify_EventHandler(Notify); }
    }
}
